/*
 *  NoteTester.cpp
 *  SoundController0002
 *
 *  Created by jiro on 11/07/16.
 *  Copyright 2011 jiro music. All rights reserved.
 *
 */

#include "NoteTester.h"
#include "../Common/Note.h"
#include "CustomAssert.h"

using namespace sc;

void NoteTester::TestAll()
{
	Test_GetInterval();
}

void NoteTester::Test_GetInterval()
{
	AssertEqual( Note::GetInterval( Note::A, Note::B ), Note::Major2nd );
	AssertEqual( Note::GetInterval( Note::B, Note::A ), Note::Minor7th );

	AssertEqual( Note::GetInterval( Note::A, Note::CSharp ), Note::Major3rd );
	AssertEqual( Note::GetInterval( Note::CSharp, Note::A ), Note::Minor6th );
}
